//5.编写函数，实现字符串求长度的功能
#include<stdio.h>
int character(char c[])
{
	int l = 0;
	for(int i = 0; c[i] != '\0'; i++)
	{
		l++;
	}
	return l;
}
int main()
{
	char c[] = "HELLO WORLD";
	printf("字符串长度为：%d\n",character(c));
	return 0;
}
